package com.blog.jdo;

import javax.jdo.PersistenceManager;

public class ADAO {
	private final PersistenceManager pm = PMF.get().getPersistenceManager();
	
	/**
	 * dont forget to close it!
	 * 
	 * @return
	 */
	protected PersistenceManager getPersistenceManager() {
		return pm;
	}
	
	public <X> X makePersistent(final X x) {
		// checkNullFields( x );
		return pm.makePersistent(x);
	}
}
